﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BizElements.Core.Firebird
{
    static class TextUtil
    {
        internal static bool HasSpecialChars(string name)
        {
            foreach (char c in name)
            {
                if (!IsLeterDigitOrUndescore(c))
                    return true;
            }

            return false;
        }

        private static bool IsLeterDigitOrUndescore(char c)
        {
            return (char.IsLetterOrDigit(c) || c == '_');
        }
    }
}
